package com.wjv.example.spbt.mybatis.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>Title: BaseEntity</p>
 *
 * @author wjv
 * @date 2021/4/8 18:25
 * @description
 */
public class BaseEntity implements Serializable {

    /**
     * 创建时间
     */
    private Date createTime = new Date();

    /**
     * 编辑时间
     */
    private Date editTime = new Date();

    /**
     * 创建人id
     */
    private Integer createdBy = 0;

    /**
     * 编辑人id
     */
    private Integer editedBy = 0;

    /**
     * 逻辑删
     */
    private Integer logicStatus = 0;

    /**
     * 版本
     */
    private Integer version;

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getEditTime() {
        return editTime;
    }

    public void setEditTime(Date editTime) {
        this.editTime = editTime;
    }

    public Integer getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(Integer createdBy) {
        this.createdBy = createdBy;
    }

    public Integer getEditedBy() {
        return editedBy;
    }

    public void setEditedBy(Integer editedBy) {
        this.editedBy = editedBy;
    }

    public Integer getLogicStatus() {
        return logicStatus;
    }

    public void setLogicStatus(Integer logicStatus) {
        this.logicStatus = logicStatus;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    @Override
    public String toString() {
        return "BaseEntity{" +
                "createTime=" + createTime +
                ", editTime=" + editTime +
                ", createdBy=" + createdBy +
                ", editedBy=" + editedBy +
                ", logicStatus=" + logicStatus +
                ", version=" + version +
                '}';
    }
}
